<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2018/11/23
 * Time: 11:11 AM
 */

namespace app\shop\model;

/**
 * Class Category
 * @package app\shop\model
 * @OA\Schema( description="商品分类模型", readOnly={"cate_id", "children"}, type="object",
 *   @OA\Property( property="cate_id", description="分类ID", type="integer", example=1, ),
 *   @OA\Property( property="cate_name", description="分类名称", type="string", example="零食饮料", ),
 *   @OA\Property( property="parent_id", description="父级分类ID", type="integer", example=0 ),
 *   @OA\Property( property="children", description="子级分类", type="array",
 *     @OA\Items(ref="#/components/schemas/Category")
 *   ),
 * )
 */
class Category extends \ShopModel
{
    protected $table = 'sh_category';
}